home *** CD-ROM | disk | FTP | other *** search
- %if MenuItemName = Cut%
- {----------}
- Procedure DoCut;
- Begin
- if cur^.text <> nil then begin
- TECut (cur^.text);
- scrapDirty := true;
- end;
- End; {DoCut}
-
- %elsif MenuItemName = Copy%
- {----------}
- Procedure DoCopy;
- Begin
- if cur^.text <> nil then begin
- TECopy (cur^.text);
- scrapDirty := true;
- end;
- End; {DoCopy}
-
- %elsif MenuItemName = Paste%
- {----------}
- Procedure DoPaste;
- Begin
- if cur^.text <> nil then begin
- TEPaste (cur^.text);
- end;
- End; {DoPaste}
-
- %elsif MenuItemName = Clear%
- {----------}
- Procedure DoClear;
- Begin
- if cur^.text <> nil then begin
- TEDelete (cur^.text);
- end;
- End; {DoClear}
-
- %elsif MenuItemName = SelectAll%
- {----------}
- Procedure DoSelectAll;
- Begin
- if cur^.text <> nil then begin
- TESetSelect (0, maxint, cur^.text);
- end;
- End; {DoSelectAll}
-
- %else%
- %DoMenuItem%
- %end if%
-